//
//  Counter.h
//  ATM Killer
//
//  Created by USoft on 7/10/14.
//
//

#ifndef COUNTER_H
#define COUNTER_H

#include <iostream>
#include "../../ugame/include/ugame.h"
#include "../../util/include/util.h"

class Counter: public Ref{
private:
    Counter();
    virtual bool init();
public:
    virtual ~Counter();
    CREATE_FUNC(Counter);
    UG_PROPERTY_FULL(BigNumber*, totalMoney, TotalMoney);//total money from beginning
    UG_PROPERTY_FULL(BigNumber*, touchNumbers, TouchNumbers);//touch money from beginning
    UG_PROPERTY_FULL(double, timePlay, TimePlay);//total playing time
    UG_PROPERTY_FULL(double, timeSession, TimeSession);
    UG_PROPERTY_FULL(BigNumber*, touchMoney, TouchMoney);// number of touches of the current play.
    UG_PROPERTY_FULL(BigNumber*, totalSpeed, TotalSpeed);
    UG_PROPERTY_FULL(BigNumber*, moneyPerTouch, MoneyPerTouch);
    UG_PROPERTY_FULL(float, totalBonusPercentATM, TotalBonusPercentATM);
    void saveCounter();
    void loadCounter();
};
#endif /* defined(__ATM_Killer__Counter__) */
